	// 基于准备好的dom，初始化echarts实例
//  var myChart = echarts.init(document.getElementById('mapChart'));
	var myChart = echarts.init(document.getElementById('mapChart'));
    // 地图数据
    var uploadedDataURL = "js/MapJs/json/map/430000.json";
    // 标注数据
    var mapData = [
        {'latitude':28.164853, 'longitude':113.193833 , 'name':'1', 'value':32358260, 'color':'#0394d9'},
        {'latitude':28.186698, 'longitude':113.097008 , 'name':'2', 'value':32358260, 'color':'#d94d02'},
        {'latitude':28.105588, 'longitude':112.971567 , 'name':'3', 'value':32358260, 'color':'#b42fd5'},
        {'latitude':28.423935, 'longitude':113.242992 , 'name':'4', 'value':32358260, 'color':'#0394d9'},
        {'latitude':27.990963, 'longitude':112.912125 , 'name':'1', 'value':32358260, 'color':'#0394d9'},
        {'latitude':29.390536, 'longitude':113.017622 , 'name':'2', 'value':32358260, 'color':'#d94d02'},
        {'latitude':28.183305, 'longitude':113.091172 , 'name':'3', 'value':32358260, 'color':'#b42fd5'},
        {'latitude':28.183305, 'longitude':113.091172 , 'name':'4', 'value':32358260, 'color':'#0394d9'},
    ]



    $.get(uploadedDataURL, function(geoJson) {

        echarts.registerMap(name, geoJson);

        myChart.setOption(option = {
        //地图配置
             geo: {
                type: 'map',
                roam: true,
                label: {
                    normal: {
                        show: true,
                        color:'#fff'
                    },
                    emphasis: {
                        textStyle: {
                            color: '#fff'
                        }
                    }
                },
                itemStyle: {
                    normal: {
                        borderColor: '#0394d9',
                        areaColor: '#161331',
                    },
                    emphasis: {
                        areaColor: '#389BB7',
                        borderWidth: 0
                    }
                },

            },
            series: [{
                type: 'effectScatter',      
                coordinateSystem: 'geo',
                // animation: true,
                rippleEffect: {
                   brushType: 'stroke'
               },
                symbolSize: function (val,params) {
                  return 20;
                },
                data: mapData.map(function (itemOpt) {
                        return {
                            name: itemOpt.name,
                            value: [
                                itemOpt.longitude,
                                itemOpt.latitude,
                                itemOpt.value
                            ],

                            label: {
                                emphasis: {
                                    position: 'right',
                                    show: false
                                }
                            },
                            itemStyle: {
                                normal: {
                                    color: itemOpt.color
                                }
                            }
                        };
                })

            }]
        });
    });